package com.anolesoft.yr.store.stk.dao;

import com.anolesoft.yr.store.stk.entity.StkMain;
import com.anolesoft.yr.store.stk.entity.StkMainExample;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StkMainDao extends BaseMapper<StkMain> {
    long countByExample(StkMainExample example);

    int deleteByExample(StkMainExample example);

    List<StkMain> selectByExample(StkMainExample example);

    int updateByExampleSelective(@Param("record") StkMain record, @Param("example") StkMainExample example);

    int updateByExample(@Param("record") StkMain record, @Param("example") StkMainExample example);

    int updateBatch(List<StkMain> list);

    int updateBatchSelective(List<StkMain> list);

    int batchInsert(@Param("list") List<StkMain> list);

    int insertOrUpdate(StkMain record);

    int insertOrUpdateSelective(StkMain record);

    StkMain selectOneById(@Param("id") String id);

    List<StkMain> selectByWrapperPage(IPage<StkMain> page, @Param(Constants.WRAPPER) Wrapper wrapper);
}